<template>
  <div id="app">
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"/>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"/>
  </div>
</template>

<script>
import layout from '@/views/layout'
export default {
  name: 'App',
  components: {
    layout
  }
}
</script>

<style lang="less">
#app{
  height: 100%;
}
</style>
